<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->employee_name,
);
if(isset(Yii::app()->session['adminUser'])){
$this->menu=array(
	array('label'=>'List User', 'url'=>array('index')),
	array('label'=>'Create User', 'url'=>array('create')),
	array('label'=>'Update User', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete User', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
);
}else{
	$this->menu=array(
	array('label'=>'List User', 'url'=>array('index')),
);
}
?>

<h1>View User # <?php echo $model->employee_name; ?></h1>

<?php
$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'username',
		//'password',
		'employee_name',
		'level',
		 array(
		 	'name'=>'sign',
		 	'type' => 'html',
		 	'value'=>CHtml::image(Yii::app()->baseUrl."/images/uploads/".($model->sign?$model->sign:'noImage.PNG'),'User Sign', 
		 						array(
   									'style' => 'height: 140px;width:180px;',)
		 						)
          ),
	),
)); 
?>
